package com.teemor.common.idempotentspringbootstarter.utils;

/**
 * @Description:
 * @author zhoulk
 * @date: 2020/5/14
 */
public interface CacheUtils {

    boolean addCache(String key);

    boolean addCache(String key, Long sec);

    boolean addCache(String key, Object value);

    boolean addCache(String key, Object value, Long sec);

    boolean hasKey(String key);

    boolean removeKey(String key);

    Object getValue(String key);

    long ttl(String key);
}
